<#include "./template.ftl">
<#macro head>
    <title>魔客专栏作者-Morketing</title>
    <link rel="stylesheet" href="${base}/client/css/moke.css">
</#macro>
    <#macro content>
    <div id="contents">
        <div class="main wrap clearfix">
           <div class="moke-users-list">
               <#if user??>
               <div class="moke-users-info clearfix">
                   <div class="f-l pic">
                        <#if user.photoUrl??>
                            <img width="100%" src="${base}/system/getImg?imgId=${user.photoUrl!''}&w=88&h=88"/>
                        <#else>
                            <img width="100%" src="${base}/client/images/pic/moke/user2.png" alt="">
                        </#if>
                        <h2>${user.nickName!''}</h2>
                        <p>${user.whois!''}</p>
                    </div>
                   <div class="f-r nub">
                      <span><b>${count!0}篇</b><br>文章数</span>
                      <span><b>${ct!0}个</b><br>评论数</span>
                   </div>
               </div>
               <div class="list moke-list main-left">
                   <#if ps??>
                       <#list ps as p>
                        <div class="li-item">
                            <div class="f-l l">
                                <a href="${base}/posts/${p.id}"style="display: inline-block;width: inherit;height: inherit">
                                    <div style="height:100%;width:160%;margin-left: -30%;text-align: center">
                                        <img style="height:100%;width:auto" src="${base}/system/getImg?imgId=${p.postImg!''}&w=224" alt="">
                                        </div>
                            </a>
                            </div>
                            <div class="cell">
                                <h2><a href="${base}/moke/posts/${p.id}">${p.postTitle}</a></h2>
                                <p>${p.postContent}</p>
                                <div class="tips">
                                    <div class="from">
                                        <span class="name"><img width="100%" src="${base}/system/getImg?imgId=${user.photoUrl!''}&w=40" alt="">${user.nickName!''}</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                       </#list>
                   </#if>
               </div>
               <#else>
                没有该作者！请返回重新尝试！
               </#if>
           </div>
        </div>
    </div>
    </#macro>
<#macro js>
<script type="text/javascript">

</script>
</#macro>
